ImagXpress® as an ActiveX Object
The ImagXpress control window serves as the image viewer. (To enable multiple views of an image within a project, load multiple ImagXpress controls.)
When using ImagXpress as an ActiveX object, the stock ActiveX control properties provide the user with the ability to define the window appearance.
ImagXpress as a COM Object
When using ImagXpress as a COM object or when using the ImagXpress ActiveX control in a container that does not support the stock properties, the window appearance can be defined using ImagXpress:
-
Create an ImagXpress control window, by calling CreateCtlWindow. The hWnd property will now specify the window handle of the ImagXpress control.
-
Set window characteristics as follows:
-
Background color of the control (BackColor property).
-
Style of border of the control (BorderType property).
-
Whether the control window is visible (CtlVisible property).
-
The name of the font to use in the control window: (CtlFontName property).
-
The size of font to use in the control window (CtlFontSize property).
-
The font style to use in the control window (CtlSetFontStyle method).
3. When destroying the ImagXpress control, call DestroyCtlWindow to free up the window.